Fixed style and changed "__traits(isSame)" to "is" for type checking.