Fixed a bug in which a layer's mouseout event would not always fire (#142)