Adds a helper function that reliably verifies if a given function is a view class (or view constructor, for those who don't like the term "class")