Iterate class's fields using reflection