allow length attribute name for query.Fixes #455