avg, stdev: force cast to double

This is probably the right semantics for MyriaL. Worth discussing tho.
type_tests: add TODOs to tests to be fixed