Add helper for finding the type of an object, or the common type of multiple objects.
matching{Custom => }Type
Removed else cases that cannot be reached due to the catch-all "any" type.
Fixed linting error