Test for wastecount in finalsave, closes item:376

A quick fix for stock count saving.

@musamusa, should the wastecount parts be here?