[DD-392] schema attribute path instance extension + re-factoring

* incl. new init_internal_schema.sql script (+ generation via code)
* incl. morph script builder adoption + new GDMEncoder