rackrestoreitem() command always restores the last flowitem from the FlowItemBin (sub-node specified by binrank).
Wouldn't it be right to select the appropriate flowitem to match the command parameters of bay, level, position and to restore the flowitem to rack by default functionality?
That's my opinion.