Fix unreferenced formal parameter warnings.
Add CreateTemporaryEntity and CreateLocalTemporaryEntity convenience functions.