Rename length() to size(); cleanup error message

Size is consistent with the ES6 Collections APIs. https://github.com/Benvie/harmony-collections#hashmap