corrected a type cast
added safety to item casting within working tree model
recurse into sort/filter models
how could that happen?