Rename some fixture constants.
Fix a index-out-of-bounds bug.
Fix a divide by zero when no local assignments are found.