fix bug with parameter annotations not being cached when none are defined