z-index calculation should not stop at first element

i guess that when calculating proper z-index for the datepicker, we should find the max z-index value of parents() and not stop at first

related to #533 #170 #683 #678 #656 #665 #634 #621 #609 #464