fix($compile): allow multiple directives on a single element even if one works with a multi-element range

Closes #4002