[orm] allow unexported fields on model structs

Currently, calling orm.RegisterModel with a struct containing unexported fields causes a crash. This fixes that.