Make passing locals to handlebars partial work

I've tried to fix the #37 issue by myself and extracted a working code from mustache handler to handlebars handler.

I'm not sure why but tests passes for both versions (before and after my commit) so i have no idea what was wrong but now it's working for me.

Anyway - i'm not sure if that's backwards comatible, someone smarter should take a look :)