add arraylength validator
closes #866