pivot plugin: added support for nested pivot