Making ListBehavior.php and SerializableBehavior.php php 5.4 compatible