Better error reporting for utils.text

For some instance list values, there is an error "float() argument must
be a string or a number", this makes the error message more helpful. A
fix for the actual bug will be next.

Signed-off-by: Aaron Karper <akarper@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>