fixes #457 with a test from https://github.com/thecountofzero/canjs/commit/6db3295f1d634710fdfce7a93eb8b7c534ffb78d