fix p-decls to deal with decls extending the parse environment