When beginning render bind all helper functions to the correct context (fixes nested helper functions)