Fixed type on select - builds now

Esqueleto's select always gives a list of entities, values, or tuples of entities and values - even if there's an aggregate function in the return.  I pattern matched to extract the numeric value we were interested in, and added a type annotation to resolve ambiguity.