[FIX] when check for possible overlapping leaves, qualify by type.

This is to solve possible allocation and application by same person on the same day.