Added 'hostname' type as example for string extension.
Add possibility to use operations on references.
Make reference selfcheck more specific.