fixed a couple of troubles with metaeditor
Merge branch 'master' of https://github.com/qreal/qreal into metaeditor_fix
Merge branch 'metaeditor_fix' into typed_ports
forbidded reversing of link if its port types disallow it