checks for nested smart objects and...

… fix smart object type recognition in layer
Merge branch 'anirudhs/fix-scaling-linked-objects' into jhatwich/crema-dev