Adding some exception catching and a fix to the typed_iterator constructor