Fix "require" return value for cached modules

Previously requesting a chached modules would return the module itself,
not the exports. This wasn't noticed because the test setup is so that
the module loader always export the module object anyway.

Change-Id: I2782a0731020c18c3b2ab436bdcc852327f47d16