Call Object.freeze on interfaces and constant object