Included type information in the exception thrown for already attached roots

Closes #93.