wmean_2D now accepts nD input arrays (n>2).
assert condition, wmean_2D must have at least 2D.
Updating test_wmean_2D for a 3D input.