Avoid NPE when globalValues constructor parameter is null.
Query returns an immutable map; must update the origin object.
Fix unit test.
Only expect view compilation on first cycle.