min/avg/max returns nil by default

Closes #91