Wrote some helper functions to make replacements in compdecls. Started with the implementation of the rewriter
tests are more elaborate