add support for boolean, long and double names and definitions

Hi, 

I've made some additions that I found helpful for a project I'm using this library in.