Fix and test 0d arrays

Based on PR #475 

1. Fix `empty`, `ones`, and `zeros` for 0d `Distributions`
2. Fix `fromndarray` for 0d arrays 
3. Fix `fromndarray` on sliced 0d arrays (and raise an Exception locally when `distribution.shape != buf.shape`
4. Add some 0d array tests