Attempted to fix priority metadata handling.

Now if it is not implied to be zero, it should be saved and applied like
non-zero values.