TypeScript 0.9.5 support

the type-aliases for bool and Array are obsolate in the newest version of typescript!
bool -> boolean
Array -> any[]
Merge pull request #145 from genne5/patch-1

TypeScript 0.9.5 support