Set [[AlreadyResolved]] as soon as resolve is called

Fixes #323