Use $watchCollection if it's available.
Fixed check for input[type=checkbox].