made some more stuff shorter
abstracted all occurrences of [].slice.call with internal function toArray()