Code cleanup and some warnings fixed.

Code cleanup and some warnings fixed.
Issue #6 in BucketList field type was fixed.

A user with the "Write" access right for an item can search in
BucketList field type.