Fix array type checks

closes #5