Add static assertion validating that template argument is an object type