support for define([], obj), cs closure in r.e

fixes #371
fixes #407