Do better placements of identical objects

When considering remaining space, do limited lookahead when considering
identical objects (fixes #3)
Test against PHP 5.6
Don't abandon a packing as soon as an item doesn't fit (fixes #2)