Fixed the issue regarding abnormalities in the way we handle arrays and pattern matches.