Updated parser to search for *Declare*

and not the types directly anymore, to handle
DeclareOperationWithCache in ToolsForHomalg correctly.