fixes #583 and fixes can.each with can.Maps