add static sql support for simple arrays