misc bugs in alchemy.js

fixes https://github.com/GraphAlchemist/Alchemy/issues/154