Fixed ERRAI-461: shouldn't fall back to dynamic marshalling when static is enforced