just a simple algo patched with max objects. Versions for list of ints and floats. Not as elegant as Christopher solution (and almost surely less efficient), but it's a good thing to have an alternative (esp. for floats). If there are many modes the least one is returned.
In the long run it's better to write this in some js/java/c or pray to Cycling for extension of zl obj. family :).