support different encoding styles and force to something we can work with.
fixed double calls to actually use double handler instead of float handler
more tweaks (cast to the right type)
fixed another double-float issue: make sure doubles are not both included and excluded.
Merge pull request #57 from ThrowTheSwitch/bug/encoding

Support different encoding styles and force to something we can work with
Merge pull request #58 from ThrowTheSwitch/bug/double_handling

fixed double calls to actually use double handler instead of float handler
Removed trailing spaces