removed trailing spaces
added failing test for issue #113
closes issue #113 , you can now use objects like {#user}{name}{/user},
exactly the way it works in Mustache.

I'm using the Object.prototype.toString.call(value) method instead of
typeof, because typeof doesn't make the difference between an Object and
an array