improve anguar.element() type information

This fixes #490