setup test for opentypes
use local module to handle extensible types; does not work yet

There is a problem with functions not being general enough
use modules and obj.magic (by now)
fix access to field
fix types of extend functions