[FIX] models: when evaluating old-api onchange, onchange with single parameter was misinterpreted
[IMP] models: refactor calls to onchange and view spec in tests and yaml_import