Fix error in property notification when list contains non-HasTraits object

Please could you move the imports to the top of the file?