Fixed registration of functions inside an array of handlers.
Merge pull request #115 from tmair/master

Fixed registration of functions inside an array of handlers.