Support optional dimension argument to 'LENGTH