Added support for explicit types in references.