Don't overdo the checking!
For k=3/2 .dimension might be negative because the correction term is not implemented!
(dimension_cusp_forms has to be non-negative, though!)