fix issue where function and context were not properly binding; add sanity tests; add unit test to confirm expected behavior

Enyo-DCO-1.1-Signed-off-by: Cole Davis <cole.davis@lge.com>
Merge pull request #496 from enyojs/ENYO-3288-cole-davis

Fix for ENYO-3288

Reviewed-By: Ben Combee (ben.combee@lge.com)