Tweak logic in scrap code for non-docked object
Allow signed values in VN_index1 and VN_index2
Enable warnings for tautological constant out of range comparisons
Push declarations from top of function to the respective for loops with the correct types