Separate macros for matching locals by copy or by ref