Fix up some problem in idl.ts (#91)
Fix up some problem in idl.ts (#91)

This patch includes the following things:
  - Export DefinitionType enum in order to use it at outside.
  - Move to initialization position of |definitions|.
    Currently, new Array was assiged whenever iterating,
    so definitions can have only last one item

ISSUE=none
hwanseung/bacardi,hwanseung/bacardi,hwanseung/bacardi,hwanseung/bacardi,hwanseung/bacardi