Bug 916501

Fixed the --profile-memory option and re-enabled the test-memory.js test