use correct Error class and throw error in removeArray if arg is not an array
fix JsDoc
add tests for ArrayUtility
Merge pull request #758 from janhancic/develop-fix-ArrayUtility-errors

Fix ArrayUtility and adding tests