fix setValue() so it can handle static fields
fix setValue() so it can handle static fields

This used to be revision r4447.

TehSAUCE/imagej,TehSAUCE/imagej,TehSAUCE/imagej,biovoxxel/imagej,biovoxxel/imagej,biovoxxel/imagej