Add partial support for const parameters in localAliasesCompat/renderCompat.