Break out property pruning into a separate class.
Handle property arrays
codesamples added