Added hidePrivateApi option, and enforced obfuscation when attributes appear.