Use native Array.isArray if available, closes #904.