Make defstruct work on quoted expressions, closes #2156