Fix: add support for primitive with precision such as float64

typelib doesn't work with primitive types with precision such as float64.

Tested at http://regex101.com/#javascript