Fixed bugs.

Changelog:
refillFromNieghbour method is now more reliable.
extract Item method now respects doRemove flag.
refill functions now use Utils.getInventory()
refill functions ignore inventories that implement ISpecialInventory
fixed what could be considered as a duplication bug