Fix EZP-21878: layout attribute lost when importing class package