fixes and enhancements for array / vector