More helpful invalid operation output error

Now includes the type of the output as well as the content

Caveat: What if the prototype has no constructor property? :P
Update main.js

Remove ugly tiny mistake in patch
Merge pull request #28 from spion/patch-1

More helpful invalid operation output error