Check for duplicate names (function parser)