cleanup of get-delegatetype.ps1