Fixed bug in serialization of requireConfig in the template (init functions in the shim config were stripped), and updated template with error reporting for failed require loads.