refactor (do not convert $value to array but rather typecast),
fix SubtreeLimitation base class, tests