Add support for Rhino maxHeapSize - prevents out of memory errors that can occur when r.js is optimising modules