Bug 916501 & Bug 592774 - memory reporting code in harness.js is broken

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