Allowing this.bindings to be a function

This should fix #121