Bug fix: quotekey() fails on aliased keys