Only allow __bool__, __int__, and __float__ on arrays with shape ()
Only allow __bool__, __int__, and __float__ on arrays with shape ()

mattip/numpy,rgommers/numpy,endolith/numpy,charris/numpy,endolith/numpy,pdebuyl/numpy,jakirkham/numpy,numpy/numpy,mhvk/numpy,pdebuyl/numpy,simongibbons/numpy,jakirkham/numpy,mhvk/numpy,simongibbons/numpy,mattip/numpy,pdebuyl/numpy,mhvk/numpy,mattip/numpy,endolith/numpy,anntzer/numpy,anntzer/numpy,jakirkham/numpy,anntzer/numpy,rgommers/numpy,numpy/numpy,simongibbons/numpy,endolith/numpy,numpy/numpy,charris/numpy,mattip/numpy,simongibbons/numpy,seberg/numpy,mhvk/numpy,simongibbons/numpy,rgommers/numpy,charris/numpy,charris/numpy,rgommers/numpy,seberg/numpy,numpy/numpy,pdebuyl/numpy,mhvk/numpy,seberg/numpy,jakirkham/numpy,jakirkham/numpy,seberg/numpy,anntzer/numpy