refactor(angular.copy): use slice(0) to clone arrays

slice(0) is way faster on most browsers
refactor(angular.copy): use array.length=0 to empty arrays
chore(docs): improve docs parser type

previously we barfed on function type definition with optional arguments
like {function(number=)}

this fixes it

I also added a bunch of code that helps to debug incorrectly parsed docs.