AMD spec calls for require.amd to be an object

Fixes #448