Possibility to specify complex data for input's value (v2 backport)

\cc @veged 

Could you review BEMHTML template, 'cause I still got few experience with new JS-syntax?

Fix #148 (v2)