bugfix in spdiagm: throw ArgumentError instance, not ArgumentError type