TAP5-2051: Fix Plastic objects memory leaks
- manual merge from master where Denis Stepanov's patch was first
applied
FIXED - TAP5-2084: Form should decode its link parameters