Return type stability fix

Missing type specification in zeros calls, causing inconsistent return type when T != Float64.