Fix a couple of bugs which lead to infinite recursion in some cases.

1. Don't attempt to continue type resolution if package was specified, but
wasn't found.
2. Protect `append_embedded` from infinite recursion.

Fixes #123.