- set(): throw exception if first parameter is not an Array when defined
- xs_core tests: fix calls to set(), add test for above exception