sub schema (SchemaAttributePathInstance) domain model extension + test re-factoring

* incl. new init_internal_schema.sql script (+ generation via code)
please check again, is this submodule related commit intended?
(sometimes my IDE suggests me to commit changes to ../docs/ui although nothing actually changed, so I hope I didn't accidentally push this)